public class Student {
    //成员变量
    private int id;
    private String name;
    private int age;
    private String number;
    //有参和无参构造
    public Student(){}
    public Student(int id,String name,int age,String number){
        this.id = id;
        this.name = name;
        this.age=age;
        this.number=number;
    }
    //方法


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
}
